:root {
  --blue01: #e6f7ff;
  --blue02: #bae7ff;
  --blue03: #91d5ff;
  --blue04: #69c0ff;
  --blue05: #40a9ff;
  --blue06: #1890ff;
  --blue07: #096dd9;
  --blue08: #0050b3;
  --blue09: #003a8c;
  --blue10: #002766;
  
  --border: var(--blue08);
  --text: var(--blue03);
}

body {
  background-color: var(--blue10);
  cursor: default;
}

button i {
  margin-right: 4px;
}
input:disabled {
  cursor: not-allowed;
}

#toolbar {
  height: 30px;
  overflow: hidden;
}
#toolbar label {
  color: var(--text);
  font-size: 14px;
}
#inputFile {
  width: 70px;
}

#workArea {
  display: flex;
  height: 50vh;
  border-top: 1px solid var(--border);
}
#canvasWrap, #testWrap {
  flex: 1;
  overflow: auto;
  position: relative;
}
#testWrap {
  display: none;
  align-items: center;
  justify-content: center;
}
#testCanvas {
  border: 1px dotted var(--border);
}

#listWrap {
  width: 173px;
  border-left: 1px solid var(--border);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
#listWrap > div:first-child {
  padding: 4px 0 3px 8px;
}
#listWrap > div:first-child label {
  font-size: 14px;
  cursor: pointer;
}

#objList, #fileList {
  overflow: auto;
  outline: none;
  font-family: monospace;
  font-size: 12px;
}
.objItem {
  display: flex;
  align-items: center;
  height: 50px;
  border-bottom: 1px solid var(--border);
}
.objIndex {
  padding-left: 4px;
  padding-right: 4px;
}
.objImg {
  max-width: 48px;
  max-height: 48px;
  border: 1px solid var(--border);
}
.objInfo {
  flex: 1;
  padding-left: 8px;
}
.objInfo input {
  color: var(--text);
  background-color: unset;
  border: none;
  width: 90%;
}
.objItemCurrent, .fileItemCurrent {
  background-color: var(--blue09);
}
#fileList > div {
  display: flex;
  align-items: center;
  height: 40px;
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
}
#fileList > div > div {
  flex: 1;
}
#fileList i {
  cursor: pointer;
  display: none;
}
#fileList > div:hover i {
  display: block;
}

#resultArea {
  display: flex;
  height: calc(50vh - 50px);
  border-top: 1px solid var(--border);
}
#outputWrap {
  overflow: auto;
  overflow-x: hidden;
}
#outputCanvas {
  outline: none;
}
#selectBox {
  border: 1px dashed var(--border);
  position: absolute;
  outline: none;
}

#feedback {
  flex: 1;
  overflow: auto;
  color: var(--text);
  font-family: serif;
  border-left: 1px solid var(--border);
}
.current {
  border-bottom-style: solid;
}
#sourceCode {
  color: var(--text);
  background-color: unset;
  border: none;
  width: calc(100% - 4px);
  height: calc(100% - 7px);
}
.dot {
  width: 14px;
  height: 14px;
  display: inline-block;
}

#flagLayer {
  position: absolute;
  left: 0;
  top: 0;
}
.flag {
  width: 32px;
  height: 32px;
  overflow: hidden;
  background-image: url("image/flag.png");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
}
.flag div {
  width: 26px;
  height: 16px;
  overflow: hidden;
  margin-left: 5px;
  font-size: 14px;
  text-align: center;
  color: white;
}

#operateCanvas {
  position: absolute;
  left: 0;
  top: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px; /* 滚动条的宽度 */
  height: 8px; /* 滚动条的高度 */
}
/* 滚动槽 */
::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* 滚动条轨道的颜色 */
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background-color: #888; /* 滚动条滑块的颜色 */
  border-radius: 4px; /* 滑块的圆角 */
}
/* 滑块悬停时的样式 */
::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* 滑块悬停时的颜色 */
}

@font-face {
  font-family: 'iconfont';
  src: url('iconfont/iconfont.woff2') format('woff2'),
       url('iconfont/iconfont.woff') format('woff'),
       url('iconfont/iconfont.ttf') format('truetype');
}
i {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
